import request from '@/utils/request'

export function showDetails(sender, receivePhoneNum) {
  return request({
    url: '/client/shorMsg/details',
    method: 'post',
    params: { sender, receivePhoneNum }
  })
}

export function sendMessage(data) {
  return request({
    url: '/client/shorMsg/send',
    method: 'post',
    data
  })
}

export function getDispatcher(param) {
  return request({
    url: `/client/dispatcher/query/premise/${param}`,
    method: 'get'
  })
}
